home *** CD-ROM | disk | FTP | other *** search
- Path: news.netspace.net.au!usenet
- From: billmcin@netspace.net.au (Bill McIntosh)
- Newsgroups: comp.lang.c++
- Subject: Using asm functions as class members!
- Date: 12 Apr 1996 09:08:27 GMT
- Organization: Torus Games
- Message-ID: <4kl6ic$dr6@otis.netspace.net.au>
- NNTP-Posting-Host: dialup-b1-69.mel.netspace.net.au
- X-Newsreader: WinVN 0.92.6+
-
-
-
- Ive been having a trouble trying to generate a class with
- member functions that are assembly routines in external .asm files.
- I want the assembler function to have access to the specific
- object's data, but am not having much success.
-
- ie.
- class test {
- int a;
-
- void asmfunction(); // ???
- }
- so, inside the asmfunction() which is actually written TEST.ASM for
- example, I want it to be able to use 'a' properly as it's object's
- data.
-
- Can anyone help me with this? Im currently using a really bad hack
- of calling a global c function which then calls the asm function and
- it sucks.
- I am using watcom 10.5 and wasm but i dont really think this is too
- relevant seeing as it is a pretty generic problem.
-
- Thanks!
- Brett
- (ps. It would be appreciated if any answers could be mailed becuase
- I dont get to read news much..)
-